<?php
/**
 * This file is form http://findcat.cn
 *
 * @link     https://findcat.cn
 * @email    1476982312@qq.com
 */
namespace App\Mail;

use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;

class CommonReport extends Mailable
{
    use Queueable;
    use SerializesModels;

    /**
     * Create a new message instance.
     */
    public $subject = '';

    /**
     * @var
     */
    private $message;


    /**
     * CommonReport constructor.
     *
     * @param $message
     * @param $title
     */
    public function __construct($message, $title)
    {
        $this->message = $message;
        $this->subject = '【犯二青年博客】' . $title;
    }

    /**
     * Build the message.
     *
     * @return $this
     */
    public function build()
    {
        return $this->view('mail.common')->with(['content' => $this->message]);
    }
}
